Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress incomplete coding/encoding magic comment error #106

Merged
merged 2 commits into from
Jun 5, 2020

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Jun 1, 2020

No description provided.

lib/irb/color.rb Show resolved Hide resolved
@aycabta aycabta merged commit bd4ef82 into ruby:master Jun 5, 2020
@aycabta aycabta deleted the suppress-incomplete-coding-error branch June 5, 2020 15:41
aycabta added a commit to aycabta/irb that referenced this pull request Jun 8, 2020
nobu-san reviewed,

ruby#106 (review)
> How about lexer = Ripper::Lexer.new(";\n#{code}", nil, 0)?
> Encoding pragma is effective only at the beginning.
> And the semicolon and newline will be skipped because the position is before
> the initial pos.

I employ the way.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 21, 2020
nobu-san reviewed,

ruby/irb#106 (review)
> How about lexer = Ripper::Lexer.new(";\n#{code}", nil, 0)?
> Encoding pragma is effective only at the beginning.
> And the semicolon and newline will be skipped because the position is before
> the initial pos.

I employ the way.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

ruby/irb@e593cc65b7
aycabta added a commit to aycabta/irb that referenced this pull request Jul 25, 2020
nobu-san reviewed,

ruby#106 (review)
> How about lexer = Ripper::Lexer.new(";\n#{code}", nil, 0)?
> Encoding pragma is effective only at the beginning.
> And the semicolon and newline will be skipped because the position is before
> the initial pos.

I employ the way.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants